# Contributor: Dmitry Zakharchenko <dmitz@disroot.org>
# Maintainer: Dmitry Zakharchenko <dmitz@disroot.org>
pkgname=py3-youtube-search
_pkgname=youtube-search-python
pkgver=1.6.6
pkgrel=4
pkgdesc="Search for YouTube videos, channels & playlists"
url="https://github.com/alexmercerind/youtube-search-python"
arch="noarch !armhf !ppc64le" # limited by py3-httpx
license="MIT"
depends="py3-httpx"
makedepends="py3-setuptools py3-gpep517"
subpackages="$pkgname-pyc"
source="$pkgname-$pkgver.tar.gz::https://github.com/alexmercerind/youtube-search-python/archive/v$pkgver.tar.gz"
builddir="$srcdir/$_pkgname-$pkgver"
options="!check" # no test suite

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	gpep517 install-wheel --destdir "$pkgdir" \
		.dist/*.whl
}

sha512sums="
075af3545d92c19819a1f46d27199a9c0733fc7a69806f6398dcfc2b391051618bd06d845658a4cfb94adf13c1adb5463971bf28b634873af79a59d3d8c6c1dc  py3-youtube-search-1.6.6.tar.gz
"
